package com.ghck.shop.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.ghck.shop.model.UserArea;

public interface UserAreaMapper {

	@Insert("insert into t_user_area(user_id,area_id,create_time,update_time)values(#{userId},#{areaId},now(),now())")
	public Integer saveUserArea(UserArea userArea);
	
	@Select("select * from t_user_area where user_id=#{userId}")
	public UserArea findUserAreaByUserId(Integer userId);
	
}
